<ui:composition xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	<p:dialog closeOnEscape="true" header="#{msgs.projectCreation}" id="dialogProjectCreation" modal="true" resizable="false" widgetVar="dialogProjectCreationVar" width="300">
		<h:form id="projectCreationForm">
			<p:outputPanel id="existingProject" layout="block" rendered="#{projectsAdministrationController.checkExistingProject}" styleClass="errorMessage">
				<h:outputText value="#{msgs.projectExisting}" />
			</p:outputPanel>
			<h:panelGrid columns="3" id="inputGrid">
				<h:outputText value="#{msgs.name}*: "/>
				<p:inputText id="inputName" required="true" value="#{projectsAdministrationController.projectToCreate.name}"/>
				<p:message display="icon" for="inputName" />
			</h:panelGrid>
			<p:outputPanel layout="block" styleClass="buttonContainer center">
				<p:commandButton actionListener="#{projectsAdministrationController.createProject}" image="ui-icon ui-icon-circle-plus" oncomplete="handleSaveRequest(xhr, status, args, dialogProjectCreationVar)" type="submit" update="projectCreationForm" value="#{msgs.create}"/>
				<p:commandButton image="ui-icon ui-icon-circle-close" onclick="dialogProjectCreationVar.hide()" type="button" value="#{msgs.cancel}"/>
			</p:outputPanel>
		</h:form>
	</p:dialog>
</ui:composition>